package com.cl.pile.rule.filter;

/**
 * @author chenyitao
 * @date 2021/3/10
 */
public class EndWithFilterOperation implements IFilterOperation {
    @Override
    public boolean filterMatch(Object value, String matchValue) {
        if (value == null && matchValue == null) {
            return true;
        }
        return String.valueOf(value).endsWith(matchValue);
    }

    @Override
    public String filterName() {
        return "结尾等于";
    }
}
